package com.gitee.qdbp.jdbc.stream;

import com.gitee.qdbp.jdbc.api.SqlDao;

/**
 * 设置SqlId的后续操作: exists / params
 *
 * @author zhaohuihua
 * @version 20210530
 */
public class SqlOnAfterIdStream extends SqlOnAfterParamsStream {

    SqlOnAfterIdStream(SqlDao dao, String sqlId) {
        super(dao, sqlId, null);
    }

    public boolean exists() {
        return this.dao.existSqlTemplate(sqlId);
    }

    public SqlOnAfterParamsStream params(Object params) {
        return new SqlOnAfterParamsStream(dao, sqlId, params);
    }
}
